<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>群星网约车</title>
    <link rel="icon" href="../image/carMR.png" type="image/png">
    <link href="https://fonts.googleapis.com/css?family=Oswald&display=swap" rel="stylesheet">


    <link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:300,300i,400,400i,700i" rel="stylesheet">

    <style>

        * {
            margin: 0;
            padding: 0;
        }

        .timeline {
            display: flex;
            margin: 0 auto;
            flex-wrap: wrap;
            flex-direction: column;
            max-width: 700px;
            position: relative;
        }

        .timeline__content-title {
            font-weight: normal;
            font-size: 66px;
            margin: 0px 0 0 0;
            transition: 0.4s;
            padding: 0 10px;
            box-sizing: border-box;
            font-family: 'Oswald', sans-serif;
            color: #fff;
        }

        .timeline__content-desc {
            margin: 0;
            font-size: 15px;
            box-sizing: border-box;
            color: rgba(255, 255, 255, .7);
            font-family: 'Roboto Condensed', sans-serif;
            font-weight: normal;
            line-height: 25px;
        }

        .timeline:before {
            position: absolute;
            left: 50%;
            width: 2px;
            height: 100%;
            margin-left: -1px;
            content: "";
            background: rgba(255, 255, 255, .07);
        }

        @media only screen and (max-width: 767px) {
            .timeline:before {
                left: 40px;
            }
        }

        .timeline-item {
            padding: 40px 0;
            opacity: 0.3;
            filter: blur(2px);
            transition: 0.5s;
            box-sizing: border-box;
            width: calc(50% - 40px);
            display: flex;
            position: relative;
            transform: translateY(-80px);
        }

        .timeline-item:before {
            content: attr(data-text);
            letter-spacing: 3px;
            width: 100%;
            position: absolute;
            color: rgba(255, 255, 255, .5);
            font-size: 13px;
            font-family: 'Pathway Gothic One', sans-serif;
            border-left: 2px solid rgba(255, 255, 255, .5);
            top: 70%;
            margin-top: -5px;
            padding-left: 15px;
            opacity: 0;
            right: calc(-100% - 56px);
        }

        .timeline-item:nth-child(even) {
            align-self: flex-end;
        }

        .timeline-item:nth-child(even):before {
            right: auto;
            text-align: right;
            left: calc(-100% - 56px);
            padding-left: 0;
            border-left: none;
            border-right: 2px solid rgba(255, 255, 255, .5);
            padding-right: 15px;
        }

        .timeline-item--active {
            opacity: 1;
            transform: translateY(0);
            filter: blur(0px);
        }

        .timeline-item--active:before {
            top: 50%;
            transition: 0.3s all 0.2s;
            opacity: 1;
        }

        .timeline-item--active .timeline__content-title {
            margin: 0px 0 20px 0;
        }

        @media only screen and (max-width: 767px) {
            .timeline-item {
                align-self: baseline !important;
                width: 100%;
                padding: 0 30px 150px 80px;
            }

            .timeline-item:before {
                left: 10px !important;
                padding: 0 !important;
                top: 50px;
                text-align: center !important;
                width: 60px;
                border: none !important;
            }

            .timeline-item:last-child {
                padding-bottom: 40px;
            }
        }

        .timeline__img {
            max-width: 100%;
            box-shadow: 0 10px 15px rgba(0, 0, 0, .4);
        }

        .timeline-container {
            width: 100%;
            position: relative;
            padding: 80px 0;
            transition: 0.3s ease 0s;
            background-attachment: fixed;
            background-size: cover;
        }

        .timeline-container:before {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            content: "";
        }

        .timeline-header {
            width: 100%;
            text-align: center;
            margin-bottom: 80px;
            position: relative;
        }

        .timeline-header__title {
            color: #fff;
            font-size: 58px;
            font-family: 'Oswald', sans-serif;
            font-weight: normal;
            margin: 0;
        }

        .timeline-header__subtitle {
            color: rgba(255, 255, 255, .5);
            font-family: 'Pathway Gothic One', sans-serif;
            font-size: 16px;
            letter-spacing: 5px;
            margin: 10px 0 0 0;
            font-weight: normal;
        }

        .demo-footer {
            padding: 60px 0;
            text-align: center;
        }

        .demo-footer a {
            color: #999;
            display: inline-block;
            font-family: Cardo;
        }

        .el-header {
            background-color: #B3C0D1;
            color: #333;
            text-align: center;
            line-height: 60px;
        }

        .el-main {
            background-color: #E9EEF3;
            color: #333;
            text-align: center;
            line-height: 160px;
        }

        html, body {
            height: 100%; /* 让整个页面占满浏览器窗口的高度 */
            margin: 0; /* 去除默认的外边距 */
            padding: 0; /* 去除默认的内边距 */
        }

        #app {
            height: 100%; /* 让#app占满整个页面的高度 */
        }

        .el-container {
            height: 100%; /* 让.el-container占满#app的高度 */
        }

        header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background-color: #333;
            color: white;
            padding: 10px 20px;
        }

        header a {
            color: white;
            text-decoration: none;
        }

        nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
        }

        nav li {
            padding: 0 15px;
        }

        .logo img {

            border-radius: 50%;
        }


    </style>
</head>
<body>
<div class="timeline-container" id="timeline-1">
    <button style="position:fixed;margin-left: 1400px; width: 80px; height: 40px;margin-top: -40px;background-color: #55557f; color: ghostwhite;" onclick="changePage('buyGoods')"> 返&nbsp&nbsp&nbsp&nbsp&nbsp回</button>
    <div class="timeline-header">
        <h2 class="timeline-header__title">群星网约车</h2>
        <h3 class="timeline-header__subtitle">"便捷出行，安全有序"</h3>
    </div>
    <div class="timeline">
        <div class="timeline-item" data-text="便捷性">
            <div class="timeline__content"><img class="timeline__img"
                                                src="../image/c1.jpg"/>
                <h2 class="timeline__content-title">高效便利</h2>
                <p class="timeline__content-desc">
                    群星网约车以高效便捷的服务著称，用户可通过手机软件轻松预约车辆，无需等待。司机高效响应，快速到达目的地，节省了用户宝贵时间，为日常生活带来便利。
            </div>
        </div>
        <div class="timeline-item" data-text="高品质">
            <div class="timeline__content"><img class="timeline__img" src="../image/c2.jpg"/>
                <h2 class="timeline__content-title">品质卓越</h2>
                <p class="timeline__content-desc">群星网约车以品质卓越著称，致力于为用户提供高品质的出行体验。从严格筛选合格的司机和车辆，到提供舒适乘坐环境和周到细致的服务，每一个环节都体现着对品质的追求。无论是车辆的舒适性、驾驶员的专业水准还是服务的细致周到，都让乘客感受到与众不同的品质体验，赢得了用户的信赖和好评。
            </div>
        </div>
        <div class="timeline-item" data-text="环保性">
            <div class="timeline__content"><img class="timeline__img" src="../image/c3.jpg"/>
                <h2 class="timeline__content-title">环保节能</h2>
                <p class="timeline__content-desc">群星网约车致力于环保节能，推广电动车辆，减少尾气排放，为减少交通对环境的影响做出贡献。通过采用环保技术和措施，降低碳排放量，保护环境，创造更清洁的出行环境。
            </div>
        </div>
        <div class="timeline-item" data-text="多样性">
            <div class="timeline__content"><img class="timeline__img"
                                                src="../image/c4.jpg"/>
                <h2 class="timeline__content-title">多样选择</h2>
                <p class="timeline__content-desc">群星网约车提供多样选择，满足不同出行需求。用户可以根据个人喜好和需求选择不同类型的车辆，包括轿车、SUV、豪华车等。同时，还提供不同的服务模式，如舒适型、经济型等，让用户根据实际情况自由选择，享受更加灵活多样的出行体验。
            </div>
        </div>
        <div class="timeline-item" data-text="透明性">
            <div class="timeline__content"><img class="timeline__img"
                                                src="../image/c5.jpg"/>
                <h2 class="timeline__content-title">费用透明</h2>
                <p class="timeline__content-desc">群星网约车确保费用透明，用户在预约时即可清晰了解费用详情，避免后期产生纠纷。透明的费用结构让用户能够准确掌握出行成本，提升了用户的信任度和满意度，使出行更加便捷和愉快。</div>
        </div>
        <div class="timeline-item" data-text="关怀性">
            <div class="timeline__content"><img class="timeline__img"
                                                src="../image/c6.jpg"/>
                <h2 class="timeline__content-title">服务周到</h2>
                <p class="timeline__content-desc">群星网约车服务周到，司机态度友好，关注乘客需求。从提前沟通到细致接送，服务周到体现在每个环节。司机熟悉路线，主动帮助搬运行李，为乘客提供舒适、安心的出行体验，赢得了用户的信赖与口碑。
            </div>
        </div>
        <div class="timeline-item" data-text="可靠性">
            <div class="timeline__content"><img class="timeline__img"
                                                src="../image/c7.jpg"/>
                <h2 class="timeline__content-title">安全可靠</h2>
                <p class="timeline__content-desc">群星网约车以安全可靠著称，严格筛选合格的司机和车辆，并通过技术手段实时监控行驶路线，确保乘客安全。车辆均定期保养，配备GPS定位和紧急呼叫功能，确保应急情况得到及时处理。同时，群星网约车建立完善的投诉与监督机制，保障服务质量，让用户放心出行，赢得了广泛信赖。
            </div>
        </div>
    </div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script>

    (function ($) {
        $.fn.timeline = function () {
            var selectors = {
                id: $(this),
                item: $(this).find(".timeline-item"),
                activeClass: "timeline-item--active",
                img: ".timeline__img"
            };
            selectors.item.eq(0).addClass(selectors.activeClass);
            selectors.id.css(
                "background-image",
                "url(" +
                selectors.item
                    .first()
                    .find(selectors.img)
                    .attr("src") +
                ")"
            );
            var itemLength = selectors.item.length;
            $(window).scroll(function () {
                var max, min;
                var pos = $(this).scrollTop();
                selectors.item.each(function (i) {
                    min = $(this).offset().top;
                    max = $(this).height() + $(this).offset().top;
                    var that = $(this);
                    if (i == itemLength - 2 && pos > min + $(this).height() / 2) {
                        selectors.item.removeClass(selectors.activeClass);
                        selectors.id.css(
                            "background-image",
                            "url(" +
                            selectors.item
                                .last()
                                .find(selectors.img)
                                .attr("src") +
                            ")"
                        );
                        selectors.item.last().addClass(selectors.activeClass);
                    } else if (pos <= max - 40 && pos >= min) {
                        selectors.id.css(
                            "background-image",
                            "url(" +
                            $(this)
                                .find(selectors.img)
                                .attr("src") +
                            ")"
                        );
                        selectors.item.removeClass(selectors.activeClass);
                        $(this).addClass(selectors.activeClass);
                    }
                });
            });
        };
    })(jQuery);

    $("#timeline-1").timeline();


    function changePage(page) {
        var currentPageUrl = window.location.href; // 获取当前页面地址
        var currentPageFileName = currentPageUrl.substring(currentPageUrl.lastIndexOf("/") + 1); // 获取当前页面的文件名
        var newUrl = currentPageUrl.replace(currentPageFileName, page + ".html"); // 构建新的链接地址
        window.location.href = newUrl; // 页面跳转
    }
</script>
</body>
</html>